Editor.Keys = {
	l: function (evt){Editor.Util.prepareAddLiteral(); return false; },
	r: function (evt){Editor.Util.prepareAddResource(); return false; },
	esc:function (evt){Editor.Util.unselectAll(); return false; },
	up: function (evt){Editor.Util.moveShapes('up'); return false; },
	down: function (evt){Editor.Util.moveShapes('down'); return false; },
	right: function (evt){Editor.Util.moveShapes('right'); return false; },
	left: function (evt){Editor.Util.moveShapes('left'); return false; },
	del: function (evt){Editor.Util.removeShapes(); return false; },
	bind: function () {
		jQuery(document).bind('keydown', 'l',Editor.Keys.l);
		jQuery(document).bind('keydown', 'r',Editor.Keys.r);
		jQuery(document).bind('keydown', 'esc',Editor.Keys.esc);
		jQuery(document).bind('keydown', 'up',Editor.Keys.up);
		jQuery(document).bind('keydown', 'down',Editor.Keys.down);
		jQuery(document).bind('keydown', 'right',Editor.Keys.right);
		jQuery(document).bind('keydown', 'left',Editor.Keys.left);
		jQuery(document).bind('keydown', 'del',Editor.Keys.del);
	},
	unbind: function () {
		jQuery(document).unbind('keydown', 'l',Editor.Keys.l);
		jQuery(document).unbind('keydown', 'r',Editor.Keys.r);
		jQuery(document).unbind('keydown', 'esc',Editor.Keys.esc);
		jQuery(document).unbind('keydown', 'up',Editor.Keys.up);
		jQuery(document).unbind('keydown', 'down',Editor.Keys.down);
		jQuery(document).unbind('keydown', 'right',Editor.Keys.right);
		jQuery(document).unbind('keydown', 'left',Editor.Keys.left);
		jQuery(document).unbind('keydown', 'del',Editor.Keys.del);
	},
}
